<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://cdn.staticfile.org/jquery/3.2.1/jquery.min.js"></script>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.9.1/font/bootstrap-icons.css">
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/css/bootstrap.min.css">
    <link href="../../../../static/css/jquery.dataTables.min.css" rel="stylesheet">
    <link href="../../../../static/css/style.css" rel="stylesheet">
    <script src="https://cdn.staticfile.org/popper.js/1.15.0/umd/popper.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/js/bootstrap.min.js"></script>
    <link rel="stylesheet" href="../css/productionPlanRegistrationCss.css">
</head>
<body style="background-color: white">
<div style="height: 5px"></div>
<div style="display: flex;justify-content: end">
    <button type="button" disabled='true' class="btn btn-warning"  id="generateWorkOrder">生成派工单 <span
            class="btn-icon-end"><i class="fa fa-star"></i></span>
    </button>
</div>
<div class="d1">
    <div class="modal-body container-fluid">
        <div class="table-responsive">
            <div id="example3_wrapper" class="dataTables_wrapper no-footer">
                <table id="example3" class="display dataTable no-footer" style="min-width: 845px;text-align: center"
                       role="grid" aria-describedby="example3_info">
                    <thead>
                    <tr>
                        <th></th>
                        <th>生产计划编号</th>
                        <th>产品编号</th>
                        <th>产品名称</th>
                        <th>描述</th>
                        <th>数量</th>
                        <th>审核时间</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody id="tbodyCommodity">
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
<div class="modal fade" id="myModal">
    <div class="modal-dialog modal-lg" style="display: flex">
        <div class="modal-content">
            <!-- 模态框主体 -->
            <div class="modal-body">
                <div class="container-fluid">
                    <!-- Nav tabs -->
                    <div class="default-tab">
                        <ul class="nav nav-tabs" role="tablist">
                            <li class="nav-item">
                                <a class="nav-link active" data-bs-toggle="tab" href="#home"><i
                                        class="la la-home me-2"></i> 主信息</a>
                            </li>
                        </ul>
                        <div class="tab-content">
                            <div class="container-fluid col-lg-12">
                                <div class="card">
                                    <div class="card-body">
                                        <div class="tab-pane fade show active" id="home" role="tabpanel">
                                            <div class="basic-form">
                                                <div class="row">
                                                    <div class="mb-3 col-md-6">
                                                        <label class="form-label">档案编号</label>
                                                        <input type="text" class="form-control" id="productId"
                                                               readonly>
                                                    </div>
                                                    <div class="mb-3 col-md-6">
                                                        <label class="form-label">用途类型</label>
                                                        <input type="text" class="form-control" id="type"
                                                               readonly>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="mb-3 col-md-6">
                                                        <label class="form-label">产品名称</label>
                                                        <input type="text" class="form-control" id="productName"
                                                               readonly>
                                                    </div>
                                                    <div class="mb-3 col-md-6">
                                                        <label class="form-label">制造商</label>
                                                        <input type="text" class="form-control" id="factoryName"
                                                               readonly>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="mb-3 col-md-6">
                                                        <label class="form-label">I级分类</label>
                                                        <input type="text" class="form-control" id="firstKingName"
                                                               readonly>
                                                    </div>
                                                    <div class="mb-3 col-md-6">
                                                        <label class="form-label">II级分类</label>
                                                        <input type="text" class="form-control" id="secondKingName"
                                                               readonly>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="mb-3 col-md-6">
                                                        <label class="form-label">III级分类</label>
                                                        <input type="text" class="form-control" id="thirdKingName"
                                                               readonly>
                                                    </div>
                                                    <div class="mb-3 col-md-6">
                                                        <label class="form-label">产品简称</label>
                                                        <input type="text" class="form-control" id="productNick"
                                                               readonly>
                                                    </div>
                                                </div>
                                                <div class="row">

                                                    <div class="mb-3 col-md-6">
                                                        <label class="form-label">计量值</label>
                                                        <input type="text" class="form-control" id="personalValue"
                                                               readonly>
                                                    </div>
                                                    <div class="mb-3 col-md-6">
                                                        <label class="form-label">档次级别</label>
                                                        <input type="text" class="form-control" id="productClass"
                                                               readonly>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="mb-3 col-md-6">
                                                        <label class="form-label">计量单位</label>
                                                        <input type="text" class="form-control" id="personalUnit"
                                                               readonly>
                                                    </div>


                                                    <div class="mb-3 col-md-6">
                                                        <label class="form-label">成本单价</label>
                                                        <input type="text" class="form-control" id="realCostPrice"
                                                               readonly>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="mb-3 col-md-6">
                                                        <label class="form-label">市场单价(￥)</label>
                                                        <input type="text" class="form-control" id="listPrice"
                                                               readonly>
                                                    </div>
                                                    <div class="mb-3 col-md-6">
                                                        <label class="form-label">计划成本单价(￥)</label>
                                                        <input type="text" class="form-control" id="costPrice"
                                                               readonly>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="mb-3 col-md-6">
                                                        <label class="form-label">建档时间</label>
                                                        <input type="text" class="form-control" id="registerTime"
                                                               readonly>
                                                    </div>
                                                    <div class="mb-3 col-md-6">
                                                        <label class="form-label">登记人</label>
                                                        <input type="text" class="form-control" id="register"
                                                               readonly>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="mb-3 col-md-6">
                                                        <label class="form-label">复核人</label>
                                                        <input type="text" class="form-control" id="checker"
                                                               readonly>
                                                    </div>
                                                    <div class="mb-3 col-md-6">
                                                        <label class="form-label">复核时间</label>
                                                        <input type="text" class="form-control" id="dfileCheckTime"
                                                               readonly>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

            </div>

            <!-- 模态框底部 -->
            <div class="modal-footer">
                <button type="button" class="btn btn-danger" data-dismiss="modal">关闭</button>
            </div>

        </div>
    </div>
</div>
<div class="modal fade" id="myModal1">
    <div class="modal-dialog modal-lg" style="display: flex">
        <div class="modal-content">

            <!-- 模态框头部 -->
            <div class="modal-header">
                <h4 class="card-title">developProductionDispatchOrders</h4>
                <div>
                    <button type="button" class="btn btn-info" data-dismiss="modal"  id="through">预览</button>
                </div>
            </div>

            <!-- 模态框主体 -->
            <div class="modal-body">
                <div class="d1">
                    <div style="margin-top: 10px"><h2>生产派工单</h2>

                    </div>
                    <div class="container-fluid col-lg-12">
                        <div class="row">
                            <div class="mb-3 col-md-6">
                                <label class="form-label">工单制定人</label>
                                <input type="text" class="form-control" id="workOrderMaker"
                                       readonly>
                            </div>
                            <div class="mb-3 col-md-6">
                                <label class="form-label">出库单编号集合</label>
                                <input type="text" class="form-control"
                                       readonly>
                            </div>
                        </div>
                        <div class="row">
                            <div class="mb-3 col-md-6">
                                <label class="form-label">登记人</label>
                                <input type="text" class="form-control" id="modRegister"
                                       readonly>
                            </div>
                            <div class="mb-3 col-md-6">
                                <label class="form-label">登记时间</label>
                                <input type="text" class="form-control" id="modRegisterTime"
                                       readonly>
                            </div>
                        </div>
                        <div class="row">
                            <div class="mb-3 col-md-6">
                                <label class="form-label">产品编号</label>
                                <input type="text" class="form-control" id="modProductId"
                                       readonly>
                            </div>
                            <div class="mb-3 col-md-6">
                                <label class="form-label">产品名称</label>
                                <input type="text" class="form-control"  id="modProductName"
                                       readonly>
                            </div>
                        </div>
                        <div class="row">
                            <div class="mb-3 col-md-6">
                                <label class="form-label">描述</label>
                                <input type="text" class="form-control" id="modProductDescribe"
                                       readonly>
                            </div>
                            <div class="mb-3 col-md-6">
                                <label class="form-label">数量</label>
                                <input type="text" class="form-control" id="modAmount"
                                       readonly>
                            </div>
                        </div>
                        <div class="row">
                            <div class="mb-3 col" style="margin-bottom: 10px">
                                <span><h6>备注:</h6></span>
                                <textarea class="form-control" rows="4" id="auditOpinion"
                                          style="height: 115px;border-color: #c7c7c7;resize:none"></textarea>
                            </div>

                        </div>
                    </div>

                </div>

            </div>

            <!-- 模态框底部 -->
            <div class="modal-footer">
                <button type="button" class="btn btn-danger" data-dismiss="modal">关闭</button>
            </div>

        </div>
    </div>
</div>
<div class="modal fade" id="myModal2">
    <div class="modal-dialog modal-lg" style="display: flex">
        <div class="modal-content">

            <!-- 模态框头部 -->
            <div class="modal-header">
                <h4 class="card-title">productionDispatchOrder</h4>
                <div>
                    <button type="button" class="btn btn-info" data-dismiss="modal"  id="submitAWorkOrder">提交</button>
                </div>
            </div>

            <!-- 模态框主体 -->
            <div class="modal-body">
                <div class="d1">
                    <div style="margin-top: 10px"><h2>生产派工单</h2>

                    </div>
                    <div class="container-fluid row">
                        <div class="input-group mb-4 col">
                            <div class="input-group-prepend">
                                <span class="input-group-text">工单制定人:</span>
                            </div>
                            <input type="text" class="form-control" readonly id="workOrderMaker1">
                        </div>
                        <div class="input-group mb-4 col">
                            <div class="input-group-prepend">
                                <span class="input-group-text">出库单编号:</span>
                            </div>
                            <input type="text" class="form-control" readonly id="outboundOrderNumber">
                        </div>
                    </div>
                    <div class="container-fluid row">
                        <div class="input-group mb-4 col">
                            <div class="input-group-prepend">
                                <span class="input-group-text">产&nbsp;品&nbsp;编&nbsp;号:</span>
                            </div>
                            <input type="text" class="form-control" id="productNumber" readonly placeholder="">
                        </div>
                        <div class="input-group mb-4 col">
                            <div class="input-group-prepend">
                                <span class="input-group-text">产&nbsp;品&nbsp;名&nbsp;称:</span>
                            </div>
                            <input type="text" class="form-control" id="productName1" readonly placeholder="">
                        </div>
                    </div>
                    <div class="container-fluid row">
                        <div class="input-group mb-4 col">
                            <div class="input-group-prepend">
                                <span class="input-group-text">数量:</span>
                            </div>
                            <input type="text" class="form-control" id="quantity" readonly>
                        </div>
                        <div class="input-group mb-4 col">
                            <div class="input-group-prepend">
                                <span class="input-group-text">描述:</span>
                            </div>
                            <input type="text" class="form-control" id="description" readonly placeholder="">
                        </div>
                    </div>
                    <div class="container-fluid row">
                        <div class="input-group mb-4 col">
                            <div class="input-group-prepend">
                                <span class="input-group-text">登记人:</span>
                            </div>
                            <input type="text" class="form-control" readonly id="registerPerson1">
                        </div>
                        <div class="input-group mb-4 col">
                            <div class="input-group-prepend">
                                <span class="input-group-text">登记时间:</span>
                            </div>
                            <input type="text" class="form-control" readonly id="checkInTime">
                        </div>
                    </div>
                    <div class="container-fluid row">
                        <table class="table table-bordered" style="text-align: center">
                            <thead>
                            <tr>
                                <th>序号</th>
                                <th>工序名称</th>
                                <th>工序编号</th>
                                <th>描述</th>
                                <th>工时数(小时)</th>
                                <th>单位工时成本(￥)</th>
                                <th>工时成本小计(￥)</th>
                                <th>查看物料</th>
                            </tr>
                            </thead>
                            <tbody id="tbody">


                            </tbody>
                        </table>
                    </div>

                    <div class="col" style="margin-bottom: 10px">
                        <span><h6>备注:</h6></span>
                        <textarea class="form-control" rows="4" id="remark" readonly
                                  style="height: 115px;border-color: #c7c7c7;resize:none"></textarea>
                    </div>
                </div>

            </div>


            <!-- 模态框底部 -->
            <div class="modal-footer">
                <button type="button" class="btn btn-danger" data-dismiss="modal">关闭</button>
            </div>

        </div>
    </div>
</div>
<div class="modal fade" id="myModal3">
    <div class="modal-dialog modal-lg" style="display: flex">
        <div class="modal-content">

            <!-- 模态框头部 -->
            <div class="modal-header">
                <h4 class="card-title">processBillOfMaterial</h4>
            </div>

            <!-- 模态框主体 -->
            <div class="modal-body">
                <div class="d1">
                    <div style="margin-top: 10px"><h2>工序物料单</h2>

                    </div>
                    <div class="container-fluid row">
                        <div class="input-group mb-4 col">
                            <div class="input-group-prepend">
                                <span class="input-group-text">工序名称:</span>
                            </div>
                            <input type="text" class="form-control" readonly id="processName">
                        </div>
                        <div class="input-group mb-4 col">
                            <div class="input-group-prepend">
                            </div>
                        </div>
                    </div>
                    <div class="container-fluid row">
                        <table class="table table-bordered" style="text-align: center">
                            <thead>
                            <tr>
                                <th>序号</th>
                                <th>物料名称</th>
                                <th>物料编号</th>
                                <th>描述</th>
                                <th>本工序数量</th>
                                <th>单位</th>
                                <th>单价(￥)</th>
                                <th>小计(￥)</th>
                            </tr>
                            </thead>
                            <tbody id="tbBody">


                            </tbody>
                        </table>
                    </div>

                </div>

            </div>


            <!-- 模态框底部 -->
            <div class="modal-footer">
                <button type="button" class="btn btn-danger" data-dismiss="modal">关闭</button>
            </div>

        </div>
    </div>
</div>
<script src="../js/jquery.dataTables.min.js"></script>
<script src="../js/developProductionDispatchOrdersJs.js"></script>
</body>
</html>